package br.edu.unilasalle.simon_api.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.edu.unilasalle.simon_api.dao.IFornecedorDao;
import br.edu.unilasalle.simon_api.dao.IGenericDao;
import br.edu.unilasalle.simon_api.domain.Fornecedor;
import br.edu.unilasalle.simon_api.service.IFornecedorService;

@Service
public class FornecedorService extends GenericService<Fornecedor, Long> implements IFornecedorService {
	
	@Autowired
	private IFornecedorDao dao;
	
	public IFornecedorDao getFornecedorDao() {
		return dao;
	}
	
	public void setFornecedorDao(IFornecedorDao dao) {
		this.dao = dao;
	}

	@Override
	public IGenericDao<Fornecedor, Long> getEntityDao() {
		return this.dao;
	}
    
	@Override
	public List<Fornecedor> findAllFornecedor() {
		return this.dao.findAllFornecedor();
	}
	
}
